#ifndef _STAR_H_
#define _STAR_H_

#include "Object.h"

#define POWERUP_VX	0.1
#define GRAVITY		0.01

/************************************************************************/
/*Ngoi sao ba dao, mario an dung quai chet quai				*/
/************************************************************************/

class Star : public Object
{
	

	float _xOld;
	float _yOld;

	 

	bool	isCheckedContainer;
	bool isGravity;

public:
	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Contructor/destructor
	 */
	Star(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State, int Direction);
	~Star();

	/*
	 *	Method
	 */
	 
	void CheckObjects(list<Object*>* staObjs,list<Object*>* dynObjs);
	 

	void move(list<Object*>* obj_list, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void render(int cameraX, int cameraY);
	void changeState(int state);
};

#endif